home *** CD-ROM | disk | FTP | other *** search
Wrap
ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) NNNNAAAAMMMMEEEE ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallllffffSSSSGGGGIIIIXXXX,,,, ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaalllliiiiSSSSGGGGIIIIXXXX,,,, ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallllffffvvvvSSSSGGGGIIIIXXXX,,,, ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaalllliiiivvvvSSSSGGGGIIIIXXXX - specify fragment material parameters for the fragment lighting model CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN void ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallllffffSSSSGGGGIIIIXXXX( GLenum _f_a_c_e, GLenum _p_n_a_m_e, GLfloat _p_a_r_a_m ) void ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaalllliiiiSSSSGGGGIIIIXXXX( GLenum _f_a_c_e, GLenum _p_n_a_m_e, GLint _p_a_r_a_m ) PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _f_a_c_e Specifies which face or faces are being updated. Must be one of GGGGLLLL____FFFFRRRROOOONNNNTTTT, GGGGLLLL____BBBBAAAACCCCKKKK, or GGGGLLLL____FFFFRRRROOOONNNNTTTT____AAAANNNNDDDD____BBBBAAAACCCCKKKK. _p_n_a_m_e Specifies the single-valued fragment material parameter of the face or faces that is being updated. Must be GGGGLLLL____SSSSHHHHIIIINNNNIIIINNNNEEEESSSSSSSS. _p_a_r_a_m Specifies the value that parameter GGGGLLLL____SSSSHHHHIIIINNNNIIIINNNNEEEESSSSSSSS will be set to. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN void ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallllffffvvvvSSSSGGGGIIIIXXXX( GLenum _f_a_c_e, GLenum _p_n_a_m_e, const GLfloat *_p_a_r_a_m_s ) void ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaalllliiiivvvvSSSSGGGGIIIIXXXX( GLenum _f_a_c_e, GLenum _p_n_a_m_e, const GLint *_p_a_r_a_m_s ) PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _f_a_c_e Specifies which face or faces are being updated. Must be one of GGGGLLLL____FFFFRRRROOOONNNNTTTT, GGGGLLLL____BBBBAAAACCCCKKKK, or GGGGLLLL____FFFFRRRROOOONNNNTTTT____AAAANNNNDDDD____BBBBAAAACCCCKKKK. _p_n_a_m_e Specifies the fragment material parameter of the face or faces that is being updated. Must be one of GGGGLLLL____AAAAMMMMBBBBIIIIEEEENNNNTTTT, GGGGLLLL____DDDDIIIIFFFFFFFFUUUUSSSSEEEE, GGGGLLLL____SSSSPPPPEEEECCCCUUUULLLLAAAARRRR, GGGGLLLL____EEEEMMMMIIIISSSSSSSSIIIIOOOONNNN, GGGGLLLL____SSSSHHHHIIIINNNNIIIINNNNEEEESSSSSSSS, GGGGLLLL____AAAAMMMMBBBBIIIIEEEENNNNTTTT____AAAANNNNDDDD____DDDDIIIIFFFFFFFFUUUUSSSSEEEE, or GGGGLLLL____CCCCOOOOLLLLOOOORRRR____IIIINNNNDDDDEEEEXXXXEEEESSSS. _p_a_r_a_m_s Specifies a pointer to the value or values that _p_n_a_m_e will be set to. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll assigns values to fragment material parameters. There are two matched sets of fragment material parameters. One, the _f_r_o_n_t- _f_a_c_i_n_g set, is used to shade points, lines, bitmaps, and all polygons (when two-sided lighting is disabled), or just front-facing polygons PPPPaaaaggggeeee 1111 ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) (when two-sided lighting is enabled). The other set, _b_a_c_k-_f_a_c_i_n_g, is used to shade back-facing polygons only when two-sided lighting is enabled. Refer to the ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttMMMMooooddddeeeellll reference page for details concerning one- and two-sided lighting calculations. ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll takes three arguments. The first, _f_a_c_e, specifies whether the GGGGLLLL____FFFFRRRROOOONNNNTTTT fragment materials, the GGGGLLLL____BBBBAAAACCCCKKKK fragment materials, or both GGGGLLLL____FFFFRRRROOOONNNNTTTT____AAAANNNNDDDD____BBBBAAAACCCCKKKK fragment materials will be modified. The second, _p_n_a_m_e, specifies which of several parameters in one or both sets will be modified. The third, _p_a_r_a_m_s, specifies what value or values will be assigned to the specified parameter. Fragment material parameters are used in the lighting equation that is optionally applied to each fragment. The equation is discussed in the ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttMMMMooooddddeeeellll reference page. The parameters that can be specified using ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll, and their interpretations by the lighting equation, are as follows: GGGGLLLL____AAAAMMMMBBBBIIIIEEEENNNNTTTT _p_a_r_a_m_s contains four integer or floating-point values that specify the ambient RGBA reflectance of the fragment material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0. Floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The initial ambient reflectance for both front- and back-facing fragment materials is (0.2, 0.2, 0.2, 1.0). GGGGLLLL____DDDDIIIIFFFFFFFFUUUUSSSSEEEE _p_a_r_a_m_s contains four integer or floating-point values that specify the diffuse RGBA reflectance of the fragment material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0. Floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The initial diffuse reflectance for both front- and back-facing fragment materials is (0.8, 0.8, 0.8, 1.0). GGGGLLLL____SSSSPPPPEEEECCCCUUUULLLLAAAARRRR _p_a_r_a_m_s contains four integer or floating-point values that specify the specular RGBA reflectance of the fragment material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0. Floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The initial specular reflectance for both front- and back-facing fragment materials is (0, 0, 0, 1). PPPPaaaaggggeeee 2222 ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) GGGGLLLL____EEEEMMMMIIIISSSSSSSSIIIIOOOONNNN _p_a_r_a_m_s contains four integer or floating-point values that specify the RGBA emitted light intensity of the fragment material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0. Floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The initial emission intensity for both front- and back-facing fragment materials is (0, 0, 0, 1). GGGGLLLL____SSSSHHHHIIIINNNNIIIINNNNEEEESSSSSSSS _p_a_r_a_m_s is a single integer or floating-point value that specifies the RGBA specular exponent of the fragment material. Integer and floating-point values are mapped directly. Only values in the range [0,128] are accepted. The initial specular exponent for both front- and back-facing fragment materials is 0. GGGGLLLL____AAAAMMMMBBBBIIIIEEEENNNNTTTT____AAAANNNNDDDD____DDDDIIIIFFFFFFFFUUUUSSSSEEEE Equivalent to calling ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll twice with the same parameter values, once with GGGGLLLL____AAAAMMMMBBBBIIIIEEEENNNNTTTT and once with GGGGLLLL____DDDDIIIIFFFFFFFFUUUUSSSSEEEE. GGGGLLLL____CCCCOOOOLLLLOOOORRRR____IIIINNNNDDDDEEEEXXXXEEEESSSS _p_a_r_a_m_s contains three integer or floating-point values specifying the color indices for ambient, diffuse, and specular lighting. These three values, and GGGGLLLL____SSSSHHHHIIIINNNNIIIINNNNEEEESSSSSSSS, are the only fragment material values used by the color index mode lighting equation. Refer to the ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttMMMMooooddddeeeellll reference page for a discussion of color index lighting. NNNNOOOOTTTTEEEESSSS The fragment material parameters can be updated at any time. In particular, ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll can be called between a call to ggggllllBBBBeeeeggggiiiinnnn and the corresponding call to ggggllllEEEEnnnndddd. While the ambient, diffuse, specular and emission fragment material parameters all have alpha components, only the diffuse alpha component is used in the lighting computation. EEEERRRRRRRROOOORRRRSSSS GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if either _f_a_c_e or _p_n_a_m_e is not an accepted value. GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if a specular exponent outside the range [0,128] is specified. PPPPaaaaggggeeee 3333 ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll((((3333GGGG)))) ASSOCIATED GETS ggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttMMMMaaaatttteeeerrrriiiiaaaallll MMMMAAAACCCCHHHHIIIINNNNEEEE DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS The SSSSGGGGIIIIXXXX____ffffrrrraaaaggggmmmmeeeennnntttt____lllliiiigggghhhhttttiiiinnnngggg extension is supported only on OOOOccccttttaaaannnneeee2222 VVVVPPPPrrrroooo systems. SSSSEEEEEEEE AAAALLLLSSSSOOOO ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttCCCCoooolllloooorrrrMMMMaaaatttteeeerrrriiiiaaaallll, ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt, ggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttMMMMooooddddeeeellll PPPPaaaaggggeeee 4444